/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 *
 * @author Tjarco
 */
public class gui_main extends javax.swing.JFrame {
    private boolean buttonFilmpjePressed = false;
    private boolean buttonGamePressed = false;
    private boolean pannelActive = true;

    public boolean isPannelActive() {
        return pannelActive;
    }

    public void setPannelActive(boolean pannelActive) {
        this.pannelActive = pannelActive;
    }
    
    public void setButtonFilmpjePressed(boolean buttonFilmpjePressed) {
        this.buttonFilmpjePressed = buttonFilmpjePressed;
    }

    public void setButtonGamePressed(boolean buttonGamePressed) {
        this.buttonGamePressed = buttonGamePressed;
    }
    

    public boolean isButtonFilmpjePressed() {
        return buttonFilmpjePressed;
    }

    public boolean isButtonGamePressed() {
        return buttonGamePressed;
    }

    /**
     * Creates new form gui_main
     */
    public gui_main() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pannelGraphic = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        labelWiiRemote = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        buttonGame = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        buttonFilmpje = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(1280, 720));
        setUndecorated(true);
        setResizable(false);
        getContentPane().setLayout(null);

        pannelGraphic.setMaximumSize(new java.awt.Dimension(1280, 720));
        pannelGraphic.setMinimumSize(new java.awt.Dimension(1280, 720));
        pannelGraphic.setLayout(null);

        jLabel6.setFont(new java.awt.Font("Calibri", 0, 50)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(0, 51, 204));
        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel6.setText("Pick up the Wii controller to get started");
        pannelGraphic.add(jLabel6);
        jLabel6.setBounds(400, 120, 830, 130);

        labelWiiRemote.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/wii-remote.png"))); // NOI18N
        pannelGraphic.add(labelWiiRemote);
        labelWiiRemote.setBounds(20, 130, 530, 600);

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/GUI/background.jpg"))); // NOI18N
        jLabel4.setMinimumSize(new java.awt.Dimension(1280, 720));
        pannelGraphic.add(jLabel4);
        jLabel4.setBounds(0, -10, 1320, 750);

        getContentPane().add(pannelGraphic);
        pannelGraphic.setBounds(0, 0, 1280, 760);

        buttonGame.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonGame.setForeground(new java.awt.Color(51, 51, 255));
        buttonGame.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonGame.png"))); // NOI18N
        buttonGame.setBorderPainted(false);
        buttonGame.setContentAreaFilled(false);
        buttonGame.setFocusPainted(false);
        buttonGame.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonGameMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonGameMouseExited(evt);
            }
        });
        buttonGame.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonGameActionPerformed(evt);
            }
        });
        getContentPane().add(buttonGame);
        buttonGame.setBounds(660, 242, 410, 280);

        jLabel1.setFont(new java.awt.Font("Calibri", 0, 50)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(0, 51, 204));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("What can ITopia do for nursing homes?");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, 20, 1280, 120);

        buttonFilmpje.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonFilmpje.setForeground(new java.awt.Color(51, 51, 255));
        buttonFilmpje.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonFilmpje.png"))); // NOI18N
        buttonFilmpje.setBorderPainted(false);
        buttonFilmpje.setContentAreaFilled(false);
        buttonFilmpje.setFocusPainted(false);
        buttonFilmpje.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonFilmpjeMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonFilmpjeMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonFilmpjeMouseExited(evt);
            }
        });
        buttonFilmpje.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonFilmpjeActionPerformed(evt);
            }
        });
        getContentPane().add(buttonFilmpje);
        buttonFilmpje.setBounds(140, 238, 410, 290);

        jLabel3.setFont(new java.awt.Font("Calibri", 0, 30)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(51, 51, 255));
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel3.setText("Watch our film or play the demo");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(0, 120, 1280, 80);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/GUI/background.jpg"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(0, 0, 1280, 700);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonGameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonGameActionPerformed
            this.buttonGamePressed = true;
   }//GEN-LAST:event_buttonGameActionPerformed

    private void buttonFilmpjeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonFilmpjeActionPerformed
            this.buttonFilmpjePressed = true;
    }//GEN-LAST:event_buttonFilmpjeActionPerformed

    private void buttonFilmpjeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonFilmpjeMouseEntered
        buttonFilmpje.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonFilmpjeGlow.png")));
    }//GEN-LAST:event_buttonFilmpjeMouseEntered

    private void buttonFilmpjeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonFilmpjeMouseExited
        buttonFilmpje.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonFilmpje.png")));
    }//GEN-LAST:event_buttonFilmpjeMouseExited

    private void buttonGameMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonGameMouseEntered
        buttonGame.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonGameGlow.png")));
    }//GEN-LAST:event_buttonGameMouseEntered

    private void buttonGameMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonGameMouseExited
         buttonGame.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonGame.png")));
    }//GEN-LAST:event_buttonGameMouseExited

    private void buttonFilmpjeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonFilmpjeMouseClicked
        this.buttonFilmpjePressed = true;
    }//GEN-LAST:event_buttonFilmpjeMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(gui_main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(gui_main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(gui_main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(gui_main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

           public void run() {
                new gui_main().setVisible(true);
           }
        });
    }
    
        private void voledigScherm(){
        
        //Zet het scherm op voledig scherm;
        addWindowListener(new WindowAdapter() {
        public void windowOpened(WindowEvent e) {
        setExtendedState(MAXIMIZED_BOTH);
            }
         });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton buttonFilmpje;
    public javax.swing.JButton buttonGame;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel6;
    public javax.swing.JLabel labelWiiRemote;
    public javax.swing.JPanel pannelGraphic;
    // End of variables declaration//GEN-END:variables
}
